from bottle import route, static_file
import sys as sys

# move to AssestContoller class
@route('/static/images/<filename:path>')
def send_image(filename):
    return static_file(filename, root=sys.path[0] + '/templates/assets/images')
    
@route('/static/css/<filename:path>')
def send_stylesheet(filename):
    return static_file(filename, root=sys.path[0] + '/templates/assets/css', mimetype='text/css')
 
@route('/static/js/<filename:path>') 
def send_js(filename):
    return static_file(filename, root=sys.path[0] + '/templates/assets/js', mimetype='application/javascript')
# move to AssestContoller class